<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>新增</title>
		<link  rel="stylesheet"  href="../static/css/styles.css" />
		<link rel="stylesheet"  href="../static/css/font-awesome-4.7.0/css/font-awesome.min.css" />
		<script  src="../static/js/jquery.min.js" type="text/javascript"></script>
	</head>
	<body>
		<div class="add">
			<table class="tableadd" style="width: 50%;">
				<form action="http://127.0.0.1:8080/putstudent" method="post" enctype="multipart/form-data">
				<tr>
					<td>学号</td>
					<td><input type="text" id="1" name="idid"></td>
					<td>密码</td>
					<td><input type="text" id="2" name="ps"></td>
				</tr>
				<tr>
					<td>学生姓名</td>
					<td><input type="text" id="3" name="name"></td>
					<td>年龄</td>
					<td><input type="text" id="4" name="age"></td>
				</tr>
				<tr>
					<td>系</td>
					<td><input type="text" id="5" name="xi"></td>
					<td>年级</td>
					<td><input type="text" id="6" name="grade"></td>
				</tr>
				<tr>
					<td colspan="4" align="center">

						<button class="remove" >
							<i class="fa fa-save"></i>
							提交
						</button>
					</td>
				</tr>

				</form>
				<td colspan="4" align="center">
				<button class="edit"  onclick="window.location.href='{{url_for('studentlist')}}'">

							<i class="fa fa-arrow-left"></i>
							返回
						</button>
				</td>
			</table>
		</div>
	</body>
</html>

<script>
    var k = window.localStorage.getItem('imge0');
    u = document.getElementById("1");
    u.value = k;
    k = window.localStorage.getItem('imge1');
    u = document.getElementById("2");
    u.value = k;
    k = window.localStorage.getItem('imge2');
    u = document.getElementById("3");
    u.value = k;
    k = window.localStorage.getItem('imge3');
    u = document.getElementById("4");
    u.value = k;
    k = window.localStorage.getItem('imge4');
    u = document.getElementById("5");
    u.value = k;
    k = window.localStorage.getItem('imge5');
    u = document.getElementById("6");
    u.value = k;
</script>